09. Optional: Teleop Package
Teleop Package
If you prefer to control your robot to help it localize itself as you did in the lab, you would need to add the
teleop
node to your package. Thanks to the ROS community, we could use
ros-teleop
package to send command to the robot using keyboard or controller.
Clone the
ros-teleop
package to your
src
folder:
cd /home/workspace/catkin_ws/src
git clone https://github.com/ros-teleop/teleop_twist_keyboard
Build the package and source the setup script:
cd ..
catkin_make
source devel/setup.bash
Now you could run the
teleop
script as is described in the
README
file:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py